package com.hanserwei.community.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 通用分页请求
 *
 * @author hanserwei
 */
@Data
public class PageRequest {

    /**
     * 当前页码
     */
    @Schema(description = "当前页码")
    private int current = 1;

    /**
     * 每页数量
     */
    @Schema(description = "每页数量")
    private int pageSize = 10;

    /**
     * 要排序的字段
     */
    @Schema(description = "要排序的字段")
    private String sortField;

    /**
     * 排序顺序(默认降序)
     */
    @Schema(description = "排序顺序(默认降序)")
    private String sortOrder = "descend";
}